package call4paper;

import java.util.Vector;


import exception.AllRevisedException;
import exception.DoesNotUploadPaperJobException;


import website.User;

public class ClosedState extends CFPState {

	@Override
	public boolean checkDeadLine() throws AllRevisedException {
		throw new AllRevisedException();
	}

	@Override
	public void setFinalStatusState(Vector<PaperJob> paperJobs) {
		for(PaperJob paperJob: paperJobs){
			paperJob.setStatus("revized");
			paperJob.toEvaluate();
			paperJob.getAuthor().getMessage("text");
			for(User reviewer: paperJob.getReviewer())
				reviewer.getMessage("text");
		}
	}

	@Override
	public CFPState nextStates() {
		return null;
	}

	@Override
	public void uploadPaperJob(PaperJob aJob, CFP aCFP)
			throws DoesNotUploadPaperJobException {
		throw new DoesNotUploadPaperJobException();
		
	}

	/**
	 * Retorna todos lo trabajos que tiene el cfp
	 */
	@Override
	public Vector<PaperJob> checkAsignationCFP(CFP aCFP, User user) {
		return aCFP.getPaperJobs();
	}

}
